#include <QtGui/QApplication>
#include "cartoonreader.h"

// Lock S60 orientation
#ifdef Q_OS_SYMBIAN
#include <eikenv.h>
#include <eikappui.h>
#include <aknenv.h>
#include <aknappui.h>
#endif

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    CartoonReader::CartoonReader w;

    // Lock S60 orientation
#ifdef Q_OS_SYMBIAN
    CAknAppUi* appUi = dynamic_cast<CAknAppUi*> (CEikonEnv::Static()->AppUi());
    TRAPD(error, 
    if (appUi) {
        appUi->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape);
    }
    );
#endif
	
	
#if defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
    w.showFullScreen();
#else
    w.show();
#endif
    return a.exec();
}
